<template>
	<view class="body">
		<view class="header">
			<infomationVue :query="query"></infomationVue>
		</view>
		<Card :title="'基础信息'">
			<view class="information">
				<view class="childItem">
					<view class="top">
						<view class="title">
							性别
						</view>
					</view>
					<view class="bottom">
						男
					</view>
				</view>
				<view class="childItem">
					<view class="top">
						<view class="title">
							年龄
						</view>
					</view>
					<view class="bottom">
						23
					</view>
				</view>
				<view class="childItem">
					<view class="top">
						<view class="title">
							体重
						</view>
						<view class="title2">
							kg
						</view>
					</view>
					<view class="bottom">
						75.5
					</view>
				</view>
				<view class="childItem">
					<view class="top">
						<view class="title">
							身高
						</view>
						<view class="title2">
							cm
						</view>
					</view>
					<view class="bottom">
						181
					</view>
				</view>
			</view>
		</Card>
		<Card :title="'人体成分分析'">
			<view class="ingredient" style="height: 342rpx;">
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							身体水分含量(kg)
						</view>
						<view class="num">
							<text class="color1">27.9</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>26.0-31.8</text>
					</view>
				</view>
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							蛋白质(kg)
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/up.png')" mode="aspectFit" class="tag"></image>
							<text class="color2">27.9</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>26.0-31.8</text>
					</view>
				</view>
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							无机盐(kg)
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/down.png')" mode="aspectFit" class="tag"></image>
							<text class="color3">2.0</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>2.4-2.9</text>
					</view>
				</view>
				<view class="ingredient_Item">
					<view class="left">
						<view class="name">
							体脂肪(kg)
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/down.png')" mode="aspectFit" class="tag"></image>
							<text class="color3">16.0</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>10.2-16.4</text>
					</view>
				</view>
			</view>
		</Card>
		<Card :title="'肌肉脂肪分析'">
			<view class="ingredient" style="height: 266rpx;">
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							体重(kg)
						</view>
						<view class="num">
							<text class="color1">27.9</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>26.0-31.8</text>
					</view>
				</view>
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							骨骼肌(kg)
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/up.png')" mode="aspectFit" class="tag"></image>
							<text class="color2">27.9</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>26.0-31.8</text>
					</view>
				</view>
				<view class="ingredient_Item">
					<view class="left">
						<view class="name">
							体脂率(kg)
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/down.png')" mode="aspectFit" class="tag"></image>
							<text class="color3">2.0</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>2.4-2.9</text>
					</view>
				</view>
			</view>
		</Card>
		<Card :title="'肥胖分析'">
			<view class="ingredient" style="height: 342rpx;">
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							身体质量参数(kg)
						</view>
						<view class="num">
							<text class="color1">24.0</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>26.0-31.8</text>
					</view>
				</view>
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							体脂百分数(%)
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/down.png')" mode="aspectFit" class="tag"></image>
							<text class="color2">27.9</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>26.0-31.8</text>
					</view>
				</view>
				<view class="ingredient_Item mb">
					<view class="left">
						<view class="name">
							腰臀比百分数(%)
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/down.png')" mode="aspectFit" class="tag"></image>
							<text class="color3">2.0</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>2.4-2.9</text>
					</view>
				</view>
				<view class="ingredient_Item">
					<view class="left">
						<view class="name">
							皮下脂肪率
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/down.png')" mode="aspectFit" class="tag"></image>
							<text class="color3">30.7</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>2.4-2.9</text>
					</view>
				</view>
			</view>
		</Card>
		<Card :title="'肥胖分析'">
			<view class="ingredient" style="height: 587rpx;">
				<view class="photo">
					<view class="comlum_y">
						<view class="com_Item flex">
							<view class="text">
								1.8kg
							</view>
							<view class="gang">
							</view>
							<view class="text">
								1.1kg
							</view>
						</view>
						<view class="center_Item">
							
						</view>
						<view class="com_Item">
							<view class="text">
								1.8kg
							</view>
							<view class="gang">
							</view>
							<view class="text">
								1.1kg
							</view>
						</view>
					</view>
					<image :src="$IMG_URL('/static/test/boy.png')" mode="aspectFit" class="img"></image>
					<view class="comlum_y">
						<view class="com_Item flex">
							<view class="text">
								1.8kg
							</view>
							<view class="gang">
							</view>
							<view class="text">
								1.1kg
							</view>
						</view>
						<view class="center_Item">
							<view class="com_Item">
								<view class="text">
									1.8kg
								</view>
								<view class="gang">
								</view>
								<view class="text">
									1.1kg
								</view>
							</view>
						</view>
						<view class="com_Item">
							<view class="text">
								1.8kg
							</view>
							<view class="gang">
							</view>
							<view class="text">
								1.1kg
							</view>
						</view>
					</view>
				</view>
				<view class="ingredient_Item">
					<view class="left">
						<view class="name">
							皮下脂肪率
						</view>
						<view class="num">
							<image :src="$IMG_URL('/static/test/down.png')" mode="aspectFit" class="tag"></image>
							<text class="color3">30.7</text>
						</view>
					</view>
					<view class="right">
						<view class="rightName">
							参考值
						</view>
						<text>2.4-2.9</text>
					</view>
				</view>
			</view>
		</Card>
		<Card :title="'肥胖诊断'">
			<view class="ingredient" style="height: 88rpx;">
				<view class="titleHs">
					肌肉偏胖型
				</view>
			</view>
		</Card>
		<Card :title="'综合评估'">
			<view class="ingredient" style="height: 866rpx;">
				<view class="titleHs mb1">
					营养评估
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						蛋白质
					</view>
					<text class="color1">正常</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						无机盐
					</view>
					<text class="color2">缺乏</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						脂肪
					</view>
					<text class="color3">过量</text>
				</view>
				<view class="titleHs mb1 mt">
					体重评估
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						体重
					</view>
					<text class="color1">正常</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						骨骼肌
					</view>
					<text class="color2">缺乏</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						脂肪
					</view>
					<text class="color3">过量</text>
				</view>
				<view class="titleHs mb1 mt">
					肥胖评估
				</view>
				<view class="row-box mb3">
					<view class="row_left">
						身体质量参数
					</view>
					<text class="color1">正常</text>
				</view>
				<view class="row-box mb3">
					<view class="row_left">
						体脂百分数
					</view>
					<text class="color2">缺乏</text>
				</view>
			</view>
		</Card>
		<Card :title="'综合评估'">
			<view class="ingredient" style="height: 592rpx;">
				<view class="row-box mb1">
					<view class="row_left">
						目标体重(kg)
					</view>
					<text class="color2">51.1</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						体重控制(kg)
					</view>
					<text class="color3">-7.4</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						脂肪控制(kg)
					</view>
					<text class="color3">-8.7</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						肌肉控制(kg)
					</view>
					<text class="color2">+1.3</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						基础代谢(kcal)
					</view>
					<text class="color3">1190</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						健康评估(分)
					</view>
					<text class="color1">71</text>
				</view>
				<view class="row-box mb1">
					<view class="row_left">
						身体年龄
					</view>
					<text class="color3">30</text>
				</view>
			</view>
		</Card>
		<view class="empty">
			
		</view>
		<view class="footBox">
			<view class="btn">
				生成海报
			</view>
		</view>
	</view>
</template>

<script>
	import Card from './components/card.vue'
	import infomationVue from '../components/infomation.vue'
	export default {
		components: {
			Card,
			infomationVue
		},
		data() {
			return {
				query:{
					img:'https://img0.baidu.com/it/u=3974459751,424647287&fm=253&fmt=auto&app=138&f=JPEG?w=398&h=389',
					name:'夕羊羊',
					sex:1,
					age:'男丨24岁 178cm 68kg',
					phone:'13216193357',
					shop:'温州中庚漫游天地店',
					time:'2024-09-24',
					remark:'天天来，夕总',
				},
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background: #e9e9e9;
	}

	.color1 {
		color: #47CC88;
	}

	.color2 {
		color: #F37364;
	}

	.color3 {
		color: #FDC62B;
	}
	.header{
		margin-bottom: 24rpx;
	}
	.body {
		display: flex;
		flex-direction: column;
		align-items: center;

		.information {
			width: 100%;
			height: 156rpx;
			// padding: 0 14rpx;
			display: flex;
			flex-direction: row;
			justify-content: space-around;

			.childItem {
				display: flex;
				flex-direction: column;
				padding-top: 32rpx;

				.top {
					display: flex;
					flex-direction: row;
					align-items: baseline;
					margin-bottom: 4rpx;

					.title {
						font-size: 28rpx;
						font-family: PingFang SC, PingFang SC-Bold;
						font-weight: 700;
						text-align: left;
						color: #666666;
						margin-right: 8rpx;
					}

					.title2 {
						font-size: 24rpx;
						font-family: PingFang SC, PingFang SC-Medium;
						font-weight: 500;
						text-align: left;
						color: #b6b6b6;
					}
				}

				.bottom {
					display: flex;
					flex-direction: row;
					align-items: center;
					font-size: 40rpx;
					font-family: DIN, DIN-Bold;
					font-weight: 700;
					text-align: left;
					color: #333333;

					.tag {
						margin-left: 8rpx;
						width: 48rpx;
						height: 28rpx;
						background: #47cc88;
						border: 2rpx solid rgba(0, 0, 0, 0.00);
						border-radius: 8rpx;
						font-size: 20rpx;
						font-family: PingFang SC, PingFang SC-Bold;
						font-weight: 700;
						text-align: left;
						color: #ffffff;
						display: flex;
						align-items: center;
						justify-content: center;
					}
				}
			}
		}

		.ingredient {
			width: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
			padding-top: 26rpx;

			.titleHs {
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Bold;
				font-weight: 700;
				text-align: left;
				color: #000000;
			}

			.mb {
				margin-bottom: 12rpx;
			}
			.mt{
				margin-top: 8rpx;
			}
			.mb1 {
				margin-bottom: 16rpx;
			}

			.mb3 {
				margin-bottom: 24rpx;
			}

			.photo {
				width: 100%;
				display: flex;
				flex-direction: row;
				margin: 24rpx 0 48rpx;
				padding: 0 20rpx;

				.img {
					width: 444rpx;
					height: 400rpx;
					margin: 0 13rpx;
				}

				.comlum_y {
					width: 74rpx;
					height: 400rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					padding-bottom: 6rpx;

					.flex {
						padding-top: 16rpx;
					}
					
					.center_Item {
						padding: 56rpx 0 0;
						width: 74rpx;
						height: 190rpx;
					}
					.com_Item {
						display: flex;
						flex-direction: column;
						align-items: center;

						.text {
							font-size: 28rpx;
							font-family: PingFang SC, PingFang SC-Medium;
							font-weight: 500;
						}

						.gang {
							width: 74rpx;
							height: 0rpx;
							border: 2rpx solid #000000;
							margin: 5rpx 0;
						}
					}
				}
			}

			.ingredient_Item {
				width: 654rpx;
				height: 64rpx;
				background: #f9f9f9;
				border-radius: 8rpx;
				display: flex;
				flex-direction: row;
				align-items: center;

				.left {
					width: 389rpx;
					height: 40rpx;
					display: flex;
					flex-direction: row;
					align-items: center;
					padding-left: 20rpx;
					border-right: 1rpx solid #e9e9e9;
					padding-right: 19rpx;

					.name {
						font-size: 28rpx;
						font-family: PingFang SC, PingFang SC-Medium;
						font-weight: 500;
						text-align: left;
						color: #000000;
						flex: 1;
					}

					.num {
						display: flex;
						flex-direction: row;
						align-items: center;
						font-size: 28rpx;
						font-family: PingFang SC, PingFang SC-Bold;
						font-weight: 700;
						text-align: right;

						.tag {
							width: 18rpx;
							height: 24rpx;
							margin-right: 9rpx;
						}
					}
				}

				.right {
					flex: 1;
					height: 40rpx;
					display: flex;
					flex-direction: row;
					align-items: center;
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC-Regular;
					font-weight: 400;
					text-align: right;
					color: #666666;
					padding: 0 23rpx;

					.rightName {
						font-size: 28rpx;
						font-family: PingFang SC, PingFang SC-Regular;
						font-weight: 400;
						text-align: left;
						color: #666666;
						flex: 1;
					}

				}
			}

			.row-box {
				width: 654rpx;
				height: 64rpx;
				background: #f9f9f9;
				border-radius: 8rpx;
				padding: 0 20rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Medium;
				font-weight: 500;

				.row_left {
					color: #000000;
					flex: 1;
				}
			}
		}
	}
	.empty{
		height: 180rpx;
	}
	.footBox{
		position: fixed;
		bottom: 0;
		width: 750rpx;
		height: 160rpx;
		background: #ffffff;
		box-shadow: 0rpx 8rpx 28rpx 0rpx rgba(166,179,194,0.30); 
		display: flex;
		justify-content: center;
		padding-top: 10rpx;
		.btn{
			width: 710rpx;
			height: 88rpx;
			background: #73F0EA;
			border-radius: 16rpx;
			font-size: 34rpx;
			font-family: PingFang SC, PingFang SC-Bold;
			font-weight: 700;
			text-align: center;
			color: #ffffff;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>